package com.ffsky.app.data;


import android.graphics.Color;

import com.gitee.hljdrl.ffkit.app.FFKitAboutActivity;
import com.gitee.hljdrl.ffkit.bean.FFKitLink;
import com.gitee.hljdrl.ffkit.builder.FFKitLinkSource;
import com.gitee.hljdrl.ffkit.fragment.FFKitColorFragment;

import java.util.ArrayList;
import java.util.List;

public class MyLinkSource extends FFKitLinkSource {


    @Override
    public List<FFKitLink> getList() {
        List<FFKitLink> list = new ArrayList<>();
        //----------------------------------------------------------------
        list.add(new FFKitLink.Builder().setName("关于").setActivityClass(FFKitAboutActivity.class).build());
        list.add(new FFKitLink.Builder().setName("关于").setColor(Color.YELLOW).setTextColor(Color.BLUE).setActivityClass(FFKitAboutActivity.class).build());
        //----------------------------------------------------------------
        list.add(new FFKitLink.Builder().setName("Fragment").setFragmentClass(FFKitColorFragment.class).build());
        //----------------------------------------------------------------
        list.add(new FFKitLink.Builder().setName("Fragment List").addFragmentClass(FFKitColorFragment.class, FFKitColorFragment.class, FFKitColorFragment.class, FFKitColorFragment.class).build());
        //----------------------------------------------------------------
        return list;
    }


    @Override
    public String getAppName() {
        return "devkit app";
    }
}
